import moment from 'moment'

let statusArr = [
  {label: '待申请', value: '1'},
  {label: '待发放', value: '2'},
  {label: '已发放', value: '3'},
  {label: '已退回', value: '4'}
]

// 管理数据统计
export const ManageDataStatisticsThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center'
  },
  {
    title: '合作类型',
    key: 'type',
    minWidth: 100
  },
  {
    title: '客户数量',
    key: 'companyCount',
    align: 'center',
    minWidth: 100
  },
  {
    title: '客户占比',
    key: 'companyRatio',
    minWidth: 100
  },
  {
    title: '账单核对时间统计',
    key: 'billVerifyTotal',
    minWidth: 100,
    align: 'center',
    // children:[]
  },
  {
    title: '开票数量统计',
    key: 'forthWithInvoiceCount',
    minWidth: 100,
    align: 'center',
    children:[
      {
        title: '账单开票',
        key: 'billInvoiceCount',
        minWidth: 100,
        align: 'center'
      },
      {
        title: '即时开票',
        key: 'forthWithInvoiceCount',
        minWidth: 100,
        align: 'center'
      },
      {
        title: '未开票',
        key: 'noInvoiceCount',
        minWidth: 100,
        align: 'center'
      },
    ]
  },
  {
    title: '开票时间统计',
    key: 'invoiceDateTotal',
    minWidth: 100,
    align: 'center',
    // children:[]
  },
  
]

// 管理数据分析
export const ManageDataAnalysisThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center'
  },
  {
    title: '费用月份',
    key: 'type',
    minWidth: 100,
    render: (h, params) => {
      const text = params.row.periodYear+'-'+params.row.periodMonth
      return h('span', text)
    }
  },
  {
    title: '账单核对时间统计',
    key: 'billVerifyTotal',
    minWidth: 100,
    align: 'center',
    // children:[]
  },
  {
    title: '开票数量统计',
    key: 'forthWithInvoiceCount',
    minWidth: 100,
    align: 'center',
    children:[
      {
        title: '账单开票',
        key: 'billInvoiceCount',
        minWidth: 100,
        align: 'center'
      },
      {
        title: '即时开票',
        key: 'forthWithInvoiceCount',
        minWidth: 100,
        align: 'center'
      },
      {
        title: '未开票',
        key: 'noInvoiceCount',
        minWidth: 100,
        align: 'center'
      },
    ]
  },
  {
    title: '开票时间统计',
    key: 'invoiceDateTotal',
    minWidth: 100,
    align: 'center',
    // children:[]
  },
  
]